<?php  if ( ! defined('APPPATH')) exit('No direct script access allowed');

load_model('photo');

class Photo_share_model extends Photo_model {
	
	protected $TB_SHARE = 'photo_share';

	public function __construct() {
		parent::__construct();
	}

	public function get_all_photo_shares() {
		return $this->db->query("SELECT id, uid, pid, post_id, share_time FROM {$this->TB_SHARE}")->result();
	}

}